package com.cdks.wuxiu.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="shanyan.ios")
public class ShanYanIOSProps {

    @Value("${shanyan.flashLoginUrl}")
    public static String flashLoginUrl;

    @Value("${shanyan.privateKey}")
    public static String privateKey;

    @Value("${shanyan.encryptType}")
    public static String encryptType;

    @Value("${shanyan.appId}")
    public static String appId;

    @Value("${shanyan.appKey}")
    public static String appKey;


    public void setFlashLoginUrl(String flashLoginUrl) {
        ShanYanIOSProps.flashLoginUrl = flashLoginUrl;
    }
    public void setPrivateKey(String privateKey) {
        ShanYanIOSProps.privateKey = privateKey;
    }

    public void setEncryptType(String encryptType) {
        ShanYanIOSProps.encryptType = encryptType;
    }

    public void setAppId(String appId) {
        ShanYanIOSProps.appId = appId;
    }

    public void setAppKey(String appKey) {
        ShanYanIOSProps.appKey = appKey;
    }
}
